util.include(
  //"jquery-1.7.js",
  //"flod.js",
  "player.js"
);

var player, anim;

jsgig.getItGoing({
  framerate: 30,
  size: [320, 240],
  scale: 2, // autoscale
  images: [
    "assets/images/charles.png"
  ],
  keymap: {
    left: jsgig.KEYS.left,
    right: jsgig.KEYS.right,
    up: jsgig.KEYS.up,
    down: jsgig.KEYS.down,
    a: jsgig.KEYS.z,
    b: jsgig.KEYS.x,
    start: jsgig.KEYS.enter,
    select: jsgig.KEYS.shift
  },
  onStart: function onStart() {
    jsgig.event.addListener("res-preload", function (e) {
        alert(e.resources);
    });
    jsgig.event.addListener("res-load", function (e) {
        alert(e.resources);
    });
    jsgig.event.addListener("vidown", function(e) {
        
    });
    player = new Player();
    player.attach();

  },
  onUpdate: function onUpdate() {
    
  },
  onDraw: function onDraw() {
    
  }
});